import {ElMessage, ElMessageBox} from 'element-plus'
export const showMessage=(message,type)=>{
   return  ElMessage({
        showClose: true,
        message,
        type
    })
}

export const confirmMessage = (msg) => {
    return ElMessageBox.confirm(
        msg,
        {
            confirmButtonText: '确认',
            cancelButtonText: '取消',
            type: 'warning',
        }
    )
}
